package scau.erps.view.base;

import java.awt.Dimension;
import java.awt.GridLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;

import scau.erps.app.Erps;

/**
 * 沙盘进程面板
 * @author DCJ
 *
 */
public class SchedulePanel extends JPanel{
	private static final long serialVersionUID = 1L;
	private JLabel company,time;
	public SchedulePanel(){		
		JPanel	schedulePanel = new JPanel(new GridLayout(1,4,0,0));
		schedulePanel.setPreferredSize(new Dimension(280,20));
		JLabel companyLabel = new JLabel("公司名称: ");
		JLabel timeLabel = new JLabel("当前时间: ");
		company = new JLabel();
		time = new JLabel();
		this.setSeheduleData();
		schedulePanel.add(companyLabel);		
		schedulePanel.add(company);
		schedulePanel.add(timeLabel);		
		schedulePanel.add(time);
		this.add(schedulePanel);
	}
	public void setSeheduleData(){		
		company.setText(Erps.getCurrentTeam().getTeamName());
		time.setText(Erps.getSand().getTime());
	}
}
